﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using planetExpressLib;

namespace planet_express
{
    public partial class planeta_01 : System.Web.UI.Page
    {

        planetaEN planeta = new planetaEN();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["nombre"] != "")
            {
                planeta.rellenarPlaneta(Request.QueryString["nombre"]);

                Nombre_planeta.Text = planeta.Nombre;
                distancia.Text = planeta.Distancia.ToString();
                Masa.Text = planeta.Masa.ToString();
                Radio.Text = planeta.Radio.ToString();
                Periodo.Text = planeta.Periodo.ToString();
                

            }
        }
    }
}